package com.yunsom.testdemo;

import com.yunsom.testdemo.java8.stream.Student;
import com.yunsom.testdemo.util.DateUtil;

import com.yunsom.testdemo.util.StringUtil;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.Period;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.UUID;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2020/12/22 20:32
 */
public class TimePractice {

  public static void main(String[] args) {
    Period period = Period.of(1,1,1);

    LocalDateTime now = LocalDateTime.now();
    LocalDateTime nextDay = now.plus(period);
    System.out.println(DateUtil.parseDateTimeStr(nextDay));
    Duration duration = Duration.ofSeconds(60);
    System.out.println(DateUtil.parseDateTimeStr(now.plus(duration)));
  }
}
